-------一些unity的功能封装-----

--输出日志--
function log(str)
    Util.Log(str);
end

--错误日志--
function logError(str) 
	Util.LogError(str);
end

--警告日志--
function logWarn(str) 
	Util.LogWarning(str);
end

--查找对象--
function find(str)
	return GameObject.Find(str);
end

function destroy(obj)
	GameObject.Destroy(obj);
end

function destroyImmediate(obj)
    GameObject.DestroyImmediate(obj);
end

function newObject(prefab)
	return GameObject.Instantiate(prefab);
end

function child(str)
	return transform:FindChild(str);
end

function subGet(childNode, typeName)		
	return child(childNode):GetComponent(typeName);
end

function isNil(uobj)
    return uobj == nil or uobj:Equals(nil)
end


---@param fun
StartCoroutine = StartCoroutine
---@param time
WaitForSeconds = WaitForSeconds
WaitForFixedUpdate = WaitForFixedUpdate
WaitForEndOfFrame = WaitForEndOfFrame
Yield = Yield
---@param co
StopCoroutine = StopCoroutine
StopAllCoroutine = StopAllCoroutine